package com.cloud.api.domain.stats;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(description = "首页车辆统计数据")
public class VehicleStats implements Serializable {

    @Schema(description = "总车辆数")
    private Long total;

    @Schema(description = "新能源车辆数")
    private Long evTotal;

    @Schema(description = "油车车辆数")
    private Long oilTotal;

    @Schema(description = "车辆数量")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long count;

    @Schema(description = "车辆类型")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String type;
}
